package com.ruoyi.ams.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.ams.domain.AmsAssetTag;
import com.ruoyi.ams.mapper.AmsAssetTagMapper;
import com.ruoyi.ams.service.IAmsAssetTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 资产标签信息Service业务层处理
 * 
 * @author yfkj
 * @date 2021-10-15
 */
@Service
public class AmsAssetTagServiceImpl extends ServiceImpl<AmsAssetTagMapper, AmsAssetTag>  implements IAmsAssetTagService
{
    @Autowired
    private AmsAssetTagMapper amsAssetTagMapper;

    /**
     * 查询资产标签信息
     * 
     * @param assetTagId 资产标签信息主键
     * @return 资产标签信息
     */
    @Override
    public AmsAssetTag selectAmsAssetTagByAssetTagId(Long assetTagId)
    {
        return amsAssetTagMapper.selectAmsAssetTagByAssetTagId(assetTagId);
    }

    /**
     * 查询资产标签信息列表
     * 
     * @param amsAssetTag 资产标签信息
     * @return 资产标签信息
     */
    @Override
    public List<AmsAssetTag> selectAmsAssetTagList(AmsAssetTag amsAssetTag)
    {
        return amsAssetTagMapper.selectAmsAssetTagList(amsAssetTag);
    }

    /**
     * 新增资产标签信息
     * 
     * @param amsAssetTag 资产标签信息
     * @return 结果
     */
    @Override
    public int insertAmsAssetTag(AmsAssetTag amsAssetTag)
    {
        return amsAssetTagMapper.insertAmsAssetTag(amsAssetTag);
    }

    /**
     * 修改资产标签信息
     * 
     * @param amsAssetTag 资产标签信息
     * @return 结果
     */
    @Override
    public int updateAmsAssetTag(AmsAssetTag amsAssetTag)
    {
        return amsAssetTagMapper.updateAmsAssetTag(amsAssetTag);
    }

    /**
     * 批量删除资产标签信息
     * 
     * @param assetTagIds 需要删除的资产标签信息主键
     * @return 结果
     */
    @Override
    public int deleteAmsAssetTagByAssetTagIds(Long[] assetTagIds)
    {
        return amsAssetTagMapper.deleteAmsAssetTagByAssetTagIds(assetTagIds);
    }

    /**
     * 删除资产标签信息信息
     * 
     * @param assetTagId 资产标签信息主键
     * @return 结果
     */
    @Override
    public int deleteAmsAssetTagByAssetTagId(Long assetTagId)
    {
        return amsAssetTagMapper.deleteAmsAssetTagByAssetTagId(assetTagId);
    }
}
